package com.zbkj.crmeb.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 优惠券领取类型
 * @Description: 
 * @author daigb
 * @date 2021-04-13
 */
public enum CouponUserTypeEnum implements IEnum<String> {
    /**
     * 后台发放
     */
    SEND("send", "后台发放"),
    
    /**
     * 手动领取
     */
    GET("get", "手动领取"),
    
    /**
     * 自动发放
     */
    AUTO("AUTO", "自动发放")
    ;

    private final String code;
    private final String msg;

    CouponUserTypeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    @JsonValue
    public String getValue() {
        return code;
    }

}

